package com.gk.study.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.time.LocalDateTime;

@Data
@TableName("b_score")
public class Score {
    @TableId(type = IdType.AUTO)
    private Long id;

    @TableField("course_id")
    private Long courseId;

    @TableField("teacher_id") // 确保字段映射正确
    private Long teacherId;

    @TableField("user_id")
    private Long userId;

    @TableField("score")
    private Integer score;

    @TableField("comment")
    private String comment;

    @TableField("create_time")
    private LocalDateTime createTime;
}